OES_CLIENT_NAME_MAX_LEN = 32
OES_CLIENT_DESC_MAX_LEN = 32
OES_CLIENT_TAG_MAX_LEN = 32
OES_PWD_MAX_LEN = 40
OES_VER_ID_MAX_LEN = 32
OES_MAX_CLIENT_ENVID_COUNT = 128
OES_MAX_BATCH_ORDERS_COUNT = 500
OES_CUST_ID_MAX_LEN = 16
OES_CUST_ID_REAL_LEN = 12
OES_CUST_NAME_MAX_LEN = 64
OES_CASH_ACCT_ID_MAX_LEN = 16
OES_CASH_ACCT_ID_REAL_LEN = 12
OES_INV_ACCT_ID_MAX_LEN = 16
OES_INV_ACCT_ID_REAL_LEN = 10
OES_BRANCH_ID_MAX_LEN = 8
OES_BRANCH_ID_REAL_LEN = 6
OES_BANK_NO_MAX_LEN = 8
OES_BANK_NO_REAL_LEN = 4
OES_PBU_MAX_LEN = 8
OES_PBU_REAL_LEN = 6
OES_SECURITY_ID_MAX_LEN = 16
OES_STOCK_ID_REAL_LEN = 6
OES_OPTION_ID_REAL_LEN = 8
OES_SECURITY_NAME_MAX_LEN = 24
OES_SECURITY_NAME_REAL_LEN = 20
OES_CONTRACT_EXCH_ID_MAX_LEN = 24
OES_CONTRACT_EXCH_ID_REAL_LEN = 19
OES_SECURITY_STATUS_FLAG_MAX_LEN = 8
OES_EXCH_ORDER_ID_MAX_LEN = 17
OES_EXCH_ORDER_ID_SSE_LEN = 8
OES_EXCH_ORDER_ID_SZSE_LEN = 16
OES_MAX_IP_LEN = 16
OES_MAX_MAC_LEN = 20
OES_MAX_MAC_ALGIN_LEN = 24
OES_MAX_DRIVER_ID_LEN = 21
OES_MAX_DRIVER_ID_ALGIN_LEN = 24
OES_MAX_TEST_REQ_ID_LEN = 32
OES_MAX_SENDING_TIME_LEN = 22
OES_REAL_SENDING_TIME_LEN = 21
OES_MAX_ERROR_INFO_LEN = 64
OES_MAX_ALLOT_SERIALNO_LEN = 64
OES_CASH_UNIT = 10000
OES_FUND_TRSF_UNIT = 100
OES_FEE_RATE_UNIT = 10000000
OES_ETF_CASH_RATIO_UNIT = 100000
OES_BOND_INTEREST_UNIT = 100000000
OES_MARGIN_RATIO_UNIT = 10000
OES_LINE_RATIO_UNIT = 10000
OES_STK_POSITION_LIMIT_UNIT = 1000000
OES_MAX_BS_PRICE = 100000000
OES_NOTIFY_CONTENT_MAX_LEN = 256
OES_BROKER_NAME_MAX_LEN = 128
OES_BROKER_MARGIN_ACCT_MAX_LEN = 32
OES_BROKER_PHONE_MAX_LEN = 32
OES_BROKER_WEBSITE_MAX_LEN = 256
OES_MAX_VERSION_LEN = 40
OES_EXCH_UNDEFINE = 0
OES_EXCH_SSE = 1
OES_EXCH_SZSE = 2
OES_EXCHANGE_TYPE_SSE = OES_EXCH_SSE
OES_EXCHANGE_TYPE_SZSE = OES_EXCH_SZSE
__OES_EXCH_ID_MAX_ALIGNED4 = 4
__OES_EXCH_ID_MAX_ALIGNED8 = 8
OES_MKT_UNDEFINE = 0
OES_MKT_SH_ASHARE = 1
OES_MKT_SZ_ASHARE = 2
OES_MKT_SH_OPTION = 3
OES_MKT_SZ_OPTION = 4
OES_MKT_ID_UNDEFINE = OES_MKT_UNDEFINE
OES_MKT_ID_SH_A = OES_MKT_SH_ASHARE
OES_MKT_ID_SZ_A = OES_MKT_SZ_ASHARE
OES_MKT_ID_SH_OPT = OES_MKT_SH_OPTION
__OES_MKT_ID_MAX_ALIGNED8 = 8
OES_PLATFORM_UNDEFINE = 0
OES_PLATFORM_CASH_AUCTION = 1
OES_PLATFORM_FINANCIAL_SERVICES = 2
OES_PLATFORM_NON_TRADE = 3
OES_PLATFORM_DERIVATIVE_AUCTION = 4
__OES_PLATFORM_ID_MAX_ALIGNED8 = 8
OES_MKT_STATE_UNDEFINE = 0
OES_MKT_STATE_PRE_OPEN = 1
OES_MKT_STATE_OPEN_UP_COMING = 2
OES_MKT_STATE_OPEN = 3
OES_MKT_STATE_HALT = 4
OES_MKT_STATE_CLOSE = 5
OES_TRD_SESS_TYPE_O = 0
OES_TRD_SESS_TYPE_T = 1
OES_TRD_SESS_TYPE_C = 2
OES_PRODUCT_TYPE_UNDEFINE = 0
OES_PRODUCT_TYPE_EQUITY = 1
OES_PRODUCT_TYPE_BOND_STD = 2
OES_PRODUCT_TYPE_IPO = 3
OES_PRODUCT_TYPE_ALLOTMENT = 4
OES_PRODUCT_TYPE_OPTION = 5
OES_SECURITY_TYPE_UNDEFINE = 0
OES_SECURITY_TYPE_STOCK = 1
OES_SECURITY_TYPE_BOND = 2
OES_SECURITY_TYPE_ETF = 3
OES_SECURITY_TYPE_FUND = 4
OES_SECURITY_TYPE_OPTION = 5
OES_SECURITY_TYPE_MGR = 9
__OES_SECURITY_TYPE_NOT_SUPPORT = 100
OES_SUB_SECURITY_TYPE_UNDEFINE = 0
__OES_SUB_SECURITY_TYPE_STOCK_MIN = 10
OES_SUB_SECURITY_TYPE_STOCK_ASH = 11
OES_SUB_SECURITY_TYPE_STOCK_SME = 12
OES_SUB_SECURITY_TYPE_STOCK_GEM = 13
OES_SUB_SECURITY_TYPE_STOCK_KSH = 14
OES_SUB_SECURITY_TYPE_STOCK_KCDR = 15
OES_SUB_SECURITY_TYPE_STOCK_CDR = 16
OES_SUB_SECURITY_TYPE_STOCK_HLTCDR = 17
__OES_SUB_SECURITY_TYPE_BOND_MIN = 20
OES_SUB_SECURITY_TYPE_BOND_GBF = 21
OES_SUB_SECURITY_TYPE_BOND_CBF = 22
OES_SUB_SECURITY_TYPE_BOND_CPF = 23
OES_SUB_SECURITY_TYPE_BOND_CCF = 24
OES_SUB_SECURITY_TYPE_BOND_FBF = 25
OES_SUB_SECURITY_TYPE_BOND_PRP = 26
OES_SUB_SECURITY_TYPE_BOND_STD = 27
__OES_SUB_SECURITY_TYPE_ETF_MIN = 30
OES_SUB_SECURITY_TYPE_ETF_SINGLE_MKT = 31
OES_SUB_SECURITY_TYPE_ETF_CROSS_MKT = 32
OES_SUB_SECURITY_TYPE_ETF_BOND = 33
OES_SUB_SECURITY_TYPE_ETF_CURRENCY = 34
OES_SUB_SECURITY_TYPE_ETF_CROSS_BORDER = 35
OES_SUB_SECURITY_TYPE_ETF_GOLD = 36
__OES_SUB_SECURITY_TYPE_FUND_MIN = 40
OES_SUB_SECURITY_TYPE_FUND_LOF = 41
OES_SUB_SECURITY_TYPE_FUND_CEF = 42
OES_SUB_SECURITY_TYPE_FUND_OEF = 43
OES_SUB_SECURITY_TYPE_FUND_GRADED = 44
__OES_SUB_SECURITY_TYPE_OPTION_MIN = 50
OES_SUB_SECURITY_TYPE_OPTION_ETF = 51
OES_SUB_SECURITY_TYPE_OPTION_STOCK = 52
__OES_SUB_SECURITY_TYPE_MGR_MIN = 90
# __OES_SUB_SECURITY_TYPE_MAX = __OES_SUB_SECURITY_TYPE_MGR_MAX
OES_SECURITY_LEVEL_UNDEFINE = 0
OES_SECURITY_LEVEL_N = 1
OES_SECURITY_LEVEL_XST = 2
OES_SECURITY_LEVEL_ST = 3
OES_SECURITY_LEVEL_P = 4
OES_SECURITY_LEVEL_T = 5
OES_SECURITY_LEVEL_U = 6
OES_SECURITY_LEVEL_B = 7
OES_RISK_LEVEL_VERY_LOW = 0
OES_RISK_LEVEL_LOW = 1
OES_RISK_LEVEL_MEDIUM_LOW = 2
OES_RISK_LEVEL_MEDIUM = 3
OES_RISK_LEVEL_MEDIUM_HIGH = 4
OES_RISK_LEVEL_HIGH = 5
OES_RISK_LEVEL_VERY_HIGH = 6
OES_SUSPFLAG_NONE = 0x0
OES_SUSPFLAG_EXCHANGE = 0x1
OES_SUSPFLAG_BROKER = 0x2
OES_LOT_TYPE_UNDEFINE = 0
OES_LOT_TYPE_FAILED = 1
OES_LOT_TYPE_ASSIGNMENT = 2
OES_LOT_TYPE_LOTTERY = 3
OES_LOT_REJ_REASON_DUPLICATE = 1
OES_LOT_REJ_REASON_INVALID_DUPLICATE = 2
OES_LOT_REJ_REASON_OFFLINE_FIRST = 3
OES_LOT_REJ_REASON_BAD_RECORD = 4
OES_LOT_REJ_REASON_UNKNOW = 5
OES_ISSUE_TYPE_UNDEFINE = 0
OES_ISSUE_TYPE_MKT_QUOTA = 1
OES_ISSUE_TYPE_CASH = 2
OES_ISSUE_TYPE_CREDIT = 3
OES_ORD_STATUS_PENDING = 0
OES_ORD_STATUS_NEW = 1
OES_ORD_STATUS_DECLARED = 2
OES_ORD_STATUS_PARTIALLY_FILLED = 3
__OES_ORD_STATUS_FINAL_MIN = 4
OES_ORD_STATUS_CANCEL_DONE = 5
OES_ORD_STATUS_PARTIALLY_CANCELED = 6
OES_ORD_STATUS_CANCELED = 7
OES_ORD_STATUS_FILLED = 8
__OES_ORD_STATUS_INVALID_MIN = 10
OES_ORD_STATUS_INVALID_OES = 11
OES_ORD_STATUS_INVALID_SH_F = 12
OES_ORD_STATUS_INVALID_SH_E = 13
OES_ORD_STATUS_INVALID_SH_COMM = 14
OES_ORD_STATUS_INVALID_SZ_F = 15
OES_ORD_STATUS_INVALID_SZ_E = 16
OES_ORD_STATUS_INVALID_SZ_REJECT = 17
OES_ORD_STATUS_INVALID_SZ_TRY_AGAIN = 18
OES_ORD_STATUS_NORMAL = OES_ORD_STATUS_NEW
OES_ORD_STATUS_DECLARING = OES_ORD_STATUS_NEW
__OES_ORD_STATUS_INVALID_OES = OES_ORD_STATUS_INVALID_OES
OES_ORD_TYPE_LMT = 0
OES_ORD_TYPE_LMT_FOK = 1
OES_ORD_TYPE_MTL_BEST_5 = 10
OES_ORD_TYPE_MTL_BEST = 11
OES_ORD_TYPE_MTL_SAMEPARTY_BEST = 12
OES_ORD_TYPE_MTL = 13
OES_ORD_TYPE_FAK_BEST_5 = 20
OES_ORD_TYPE_FAK = 21
OES_ORD_TYPE_FOK = 30
__OES_ORD_TYPE_MAX_ALIGNED = 32
OES_ORD_TYPE_SH_LMT = OES_ORD_TYPE_LMT
OES_ORD_TYPE_SH_MTL_BEST_5 = OES_ORD_TYPE_MTL_BEST_5
OES_ORD_TYPE_SH_MTL_BEST = OES_ORD_TYPE_MTL_BEST
OES_ORD_TYPE_SH_MTL_SAMEPARTY_BEST = OES_ORD_TYPE_MTL_SAMEPARTY_BEST
OES_ORD_TYPE_SH_FAK_BEST_5 = OES_ORD_TYPE_FAK_BEST_5
OES_ORD_TYPE_SHOPT_LMT = OES_ORD_TYPE_LMT
OES_ORD_TYPE_SHOPT_LMT_FOK = OES_ORD_TYPE_LMT_FOK
OES_ORD_TYPE_SHOPT_MTL = OES_ORD_TYPE_MTL
OES_ORD_TYPE_SHOPT_FAK = OES_ORD_TYPE_FAK
OES_ORD_TYPE_SHOPT_FOK = OES_ORD_TYPE_FOK
OES_ORD_TYPE_SH_LMT_FOK = OES_ORD_TYPE_SHOPT_LMT_FOK
OES_ORD_TYPE_SH_FOK = OES_ORD_TYPE_SHOPT_FOK
OES_ORD_TYPE_SZ_LMT = OES_ORD_TYPE_LMT
OES_ORD_TYPE_SZ_LMT_FOK = OES_ORD_TYPE_LMT_FOK
OES_ORD_TYPE_SZ_MTL_BEST = OES_ORD_TYPE_MTL_BEST
OES_ORD_TYPE_SZ_MTL_SAMEPARTY_BEST = OES_ORD_TYPE_MTL_SAMEPARTY_BEST
OES_ORD_TYPE_SZ_FAK_BEST_5 = OES_ORD_TYPE_FAK_BEST_5
OES_ORD_TYPE_SZ_FAK = OES_ORD_TYPE_FAK
OES_ORD_TYPE_SZ_FOK = OES_ORD_TYPE_FOK
OES_BS_TYPE_UNDEFINE = 0
OES_BS_TYPE_BUY = 1
OES_BS_TYPE_SELL = 2
OES_BS_TYPE_CREATION = 3
OES_BS_TYPE_REDEMPTION = 4
OES_BS_TYPE_CREDIT_BUY = 5
OES_BS_TYPE_CREDIT_SELL = 6
OES_BS_TYPE_SUBSCRIPTION = 7
OES_BS_TYPE_ALLOTMENT = 8
__OES_BS_TYPE_MIN_OPTION = 10
OES_BS_TYPE_BUY_OPEN = 11
OES_BS_TYPE_SELL_CLOSE = 12
OES_BS_TYPE_SELL_OPEN = 13
OES_BS_TYPE_BUY_CLOSE = 14
OES_BS_TYPE_COVERED_OPEN = 15
OES_BS_TYPE_COVERED_CLOSE = 16
OES_BS_TYPE_OPTION_EXERCISE = 17
OES_BS_TYPE_UNDERLYING_FREEZE = 18
OES_BS_TYPE_UNDERLYING_UNFREEZE = 19
OES_BS_TYPE_CANCEL = 30
OES_BS_TYPE_SSE_DESIGNATION = 41
OES_BS_TYPE_SSE_RECALL_DESIGNATION = 42
OES_BS_TYPE_SZSE_DESIGNATION = 43
OES_BS_TYPE_SZSE_CANCEL_DESIGNATION = 44
OES_BS_TYPE_B = OES_BS_TYPE_BUY
OES_BS_TYPE_S = OES_BS_TYPE_SELL
OES_BS_TYPE_KB = OES_BS_TYPE_CREATION
OES_BS_TYPE_KS = OES_BS_TYPE_REDEMPTION
OES_BS_TYPE_CB = OES_BS_TYPE_CREDIT_BUY
OES_BS_TYPE_CS = OES_BS_TYPE_CREDIT_SELL
OES_BS_TYPE_BO = OES_BS_TYPE_BUY_OPEN
OES_BS_TYPE_BC = OES_BS_TYPE_BUY_CLOSE
OES_BS_TYPE_SO = OES_BS_TYPE_SELL_OPEN
OES_BS_TYPE_SC = OES_BS_TYPE_SELL_CLOSE
OES_BS_TYPE_CO = OES_BS_TYPE_COVERED_OPEN
OES_BS_TYPE_CC = OES_BS_TYPE_COVERED_CLOSE
OES_BS_TYPE_TE = OES_BS_TYPE_OPTION_EXERCISE
OES_BS_TYPE_UF = OES_BS_TYPE_UNDERLYING_FREEZE
OES_BS_TYPE_UU = OES_BS_TYPE_UNDERLYING_UNFREEZE
OES_ORD_DIR_BUY = 0
OES_ORD_DIR_SELL = 1
OES_TRDCNFM_TYPE_NORMAL = 0
OES_TRDCNFM_TYPE_ETF_FIRST = 1
OES_TRDCNFM_TYPE_ETF_CMPOENT = 2
OES_TRDCNFM_TYPE_ETF_CASH = 3
OES_TRDCNFM_TYPE_ETF_LAST = 4
OES_TRDCNFM_TYPE_OPT_QP1 = 11
OES_TRDCNFM_TYPE_OPT_CV1 = 12
# __OES_TRDCNFM_TYPE_MAX = __OES_TRDCNFM_TYPE_OPT_MAX
OES_ETF_TRDCNFM_TYPE_NONE = OES_TRDCNFM_TYPE_NORMAL
OES_ETF_TRDCNFM_TYPE_ETF_FIRST = OES_TRDCNFM_TYPE_ETF_FIRST
OES_ETF_TRDCNFM_TYPE_CMPOENT = OES_TRDCNFM_TYPE_ETF_CMPOENT
OES_ETF_TRDCNFM_TYPE_CASH = OES_TRDCNFM_TYPE_ETF_CASH
OES_ETF_TRDCNFM_TYPE_ETF_LAST = OES_TRDCNFM_TYPE_ETF_LAST
# __OES_ETF_TRDCNFM_TYPE_MAX = __OES_TRDCNFM_TYPE_ETF_MAX
OES_ETF_SUBFLAG_FORBID_SUB = 0
OES_ETF_SUBFLAG_ALLOW_SUB = 1
OES_ETF_SUBFLAG_MUST_SUB = 2
OES_ETF_SUBFLAG_SZ_REFUND_SUB = 3
OES_ETF_SUBFLAG_SZ_MUST_SUB = 4
OES_ETF_SUBFLAG_OTHER_REFUND_SUB = 5
OES_ETF_SUBFLAG_OTHER_MUST_SUB = 6
OES_EXECTYPE_UNDEFINE = 0
OES_EXECTYPE_INSERT = 1
OES_EXECTYPE_CONFIRMED = 2
OES_EXECTYPE_CANCELLED = 3
OES_EXECTYPE_AUTO_CANCELLED = 4
OES_EXECTYPE_REJECT = 5
OES_EXECTYPE_TRADE = 6
OES_CURR_TYPE_RMB = 0
OES_CURR_TYPE_HKD = 1
OES_CURR_TYPE_USD = 2
OES_FEE_TYPE_EXCHANGE_STAMP = 0x1
OES_FEE_TYPE_EXCHANGE_TRANSFER = 0x2
OES_FEE_TYPE_EXCHANGE_SETTLEMENT = 0x3
OES_FEE_TYPE_EXCHANGE_TRADE_RULE = 0x4
OES_FEE_TYPE_EXCHANGE_EXCHANGE = 0x5
OES_FEE_TYPE_EXCHANGE_ADMINFER = 0x6
OES_FEE_TYPE_EXCHANGE_OTHER = 0x7
OES_FEE_TYPE_BROKER_BACK_END = 0x11
OES_CALC_FEE_MODE_AMOUNT = 0
OES_CALC_FEE_MODE_QTY = 1
OES_CALC_FEE_MODE_ORD = 2
OES_FUND_TRSF_DIRECT_IN = 0
OES_FUND_TRSF_DIRECT_OUT = 1
OES_FUND_TRSF_TYPE_OES_BANK = 0
OES_FUND_TRSF_TYPE_OES_COUNTER = 1
OES_FUND_TRSF_TYPE_COUNTER_BANK = 2
OES_FUND_TRSF_STS_UNDECLARED = 0
OES_FUND_TRSF_STS_DECLARED = 1
OES_FUND_TRSF_STS_WAIT_DONE = 2
OES_FUND_TRSF_STS_DONE = 3
__OES_FUND_TRSF_STS_ROLLBACK_MIN = 5
OES_FUND_TRSF_STS_UNDECLARED_ROLLBACK = 6
OES_FUND_TRSF_STS_DECLARED_ROLLBACK = 7
__OES_FUND_TRSF_STS_INVALID_MIN = 10
OES_FUND_TRSF_STS_INVALID_OES = 11
OES_FUND_TRSF_STS_INVALID_COUNTER = 12
OES_FUND_TRSF_STS_SUSPENDED = 13
OES_BIZ_SCOPE_UNDEFINE = 0x0
OES_BIZ_SCOPE_STOCK = 0x01
OES_BIZ_SCOPE_OPTION = 0x02
OES_BIZ_SCOPE_ALL = 0xFF
OES_ACCT_TYPE_NORMAL = 0
OES_ACCT_TYPE_CREDIT = 1
OES_ACCT_TYPE_OPTION = 2
__OES_ACCT_TYPE_MAX_ALIGNED4 = 4
__OES_ACCT_TYPE_MAX_ALIGNED8 = 8
OES_CASH_TYPE_SPOT = OES_ACCT_TYPE_NORMAL
OES_CASH_TYPE_CREDIT = OES_ACCT_TYPE_CREDIT
OES_CASH_TYPE_OPTION = OES_ACCT_TYPE_OPTION
# __OES_CASH_TYPE_MAX = __OES_ACCT_TYPE_MAX
__OES_CASH_TYPE_MAX_ALIGNED4 = __OES_ACCT_TYPE_MAX_ALIGNED4
__OES_CASH_TYPE_MAX_ALIGNED8 = __OES_ACCT_TYPE_MAX_ALIGNED8
OES_CASH_TYPE_CRE = OES_CASH_TYPE_CREDIT
OES_CASH_TYPE_OPT = OES_CASH_TYPE_OPTION
OES_ACCT_STATUS_NORMAL = 0
OES_ACCT_STATUS_DISABLED = 1
OES_ACCT_STATUS_LOCKED = 2
OES_PERMIS_MARKET_ORDER = 2
OES_PERMIS_STRUCTURED_FUND = 4
OES_PERMIS_BOND_QUALIFIED_INVESTOR = 8
OES_PERMIS_XXX4 = 16
OES_PERMIS_DELISTING = 32
OES_PERMIS_RISK_WARNING = 64
OES_PERMIS_SINGLE_MARKET_ETF = 128
OES_PERMIS_CROSS_BORDER_ETF = 256
OES_PERMIS_CROSS_MARKET_ETF = 512
OES_PERMIS_CURRENCY_ETF = 1024
OES_PERMIS_STOCK_PLEDGE_REPURCHASE = 2048
OES_PERMIS_PLEDGE_REPURCHASE = 4096
OES_PERMIS_GEM = 8192
OES_PERMIS_SH_HK_STOCK_CONNECT = 16384
OES_PERMIS_SZ_HK_STOCK_CONNECT = 32768
OES_PERMIS_HLTCDR = 65536
OES_PERMIS_CDR = 131072
OES_PERMIS_INNOVATION = 262144
OES_PERMIS_KSH = 524288
__OES_PERMIS_ALL = 0xFFFFFFFF
OES_LIMIT_BUY = 2
OES_LIMIT_SELL = 4
OES_LIMIT_RECALL_DESIGNATION = 8
OES_LIMIT_DESIGNATION = 16
OES_LIMIT_REPO = 32
OES_LIMIT_REVERSE_REPO = 64
OES_LIMIT_SUBSCRIPTION = 128
OES_LIMIT_CREDIT_BUY = 256
OES_LIMIT_CREDIT_SELL = 512
OES_LIMIT_BUY_OPEN = 1024
OES_LIMIT_SELL_CLOSE = 2048
OES_LIMIT_SELL_OPEN = 4096
OES_LIMIT_BUY_CLOSE = 8192
OES_LIMIT_COVERED_OPEN = 16384
OES_LIMIT_COVERED_CLOSE = 32768
OES_LIMIT_UNDERLYING_FREEZE = 65536
OES_LIMIT_UNDERLYING_UNFREEZE = 131072
OES_LIMIT_OPTION_EXERCISE = 262144
__OES_LIMIT_ALL = 0xFFFFFFFF
OES_QUALIFICATION_PUBLIC_INVESTOR = 0
OES_QUALIFICATION_QUALIFIED_INVESTOR = 1
OES_INVESTOR_CLASS_NORMAL = 0
OES_INVESTOR_CLASS_PROFESSIONAL_A = 1
OES_INVESTOR_CLASS_PROFESSIONAL_B = 2
OES_INVESTOR_CLASS_PROFESSIONAL_C = 3
OES_CUST_TYPE_PERSONAL = 0
OES_CUST_TYPE_INSTITUTION = 1
OES_CUST_TYPE_PROPRIETARY = 2
OES_CUST_TYPE_PRODUCT = 3
OES_CUST_TYPE_MKT_MAKER = 4
OES_CUST_TYPE_OTHERS = 5
OES_OWNER_TYPE_UNDEFINE = 0
OES_OWNER_TYPE_PERSONAL = 1
OES_OWNER_TYPE_EXCHANGE = 101
OES_OWNER_TYPE_MEMBER = 102
OES_OWNER_TYPE_INSTITUTION = 103
OES_OWNER_TYPE_PROPRIETARY = 104
OES_OWNER_TYPE_MKT_MAKER = 105
OES_OWNER_TYPE_SETTLEMENT = 106
OES_CLIENT_TYPE_UNDEFINED = 0
OES_CLIENT_TYPE_INVESTOR = 1
OES_CLIENT_TYPE_VIRTUAL = 2
OES_CLIENT_STATUS_UNACTIVATED = 0
OES_CLIENT_STATUS_ACTIVATED = 1
OES_CLIENT_STATUS_PAUSE = 2
OES_CLIENT_STATUS_SUSPENDED = 3
OES_CLIENT_STATUS_CANCELLED = 4
OES_OPT_CONTRACT_TYPE_UNDEFINE = 0
OES_OPT_CONTRACT_TYPE_CALL = 1
OES_OPT_CONTRACT_TYPE_PUT = 2
OES_OPT_LIMIT_OPEN_FLAG_NORMAL = 0
OES_OPT_LIMIT_OPEN_FLAG_LIMITED = 1
OES_OPT_EXERCISE_TYPE_E = 0
OES_OPT_EXERCISE_TYPE_A = 1
OES_OPT_EXERCISE_TYPE_B = 2
OES_OPT_DELIVERY_TYPE_UNDEFINE = 0
OES_OPT_DELIVERY_TYPE_SECURITY = 1
OES_OPT_DELIVERY_TYPE_CASH = 2
OES_OPT_POSITION_TYPE_UNDEFINE = 0
OES_OPT_POSITION_TYPE_LONG = 1
OES_OPT_POSITION_TYPE_SHORT = 2
OES_OPT_POSITION_TYPE_COVERED = 3
OES_OPT_INV_LEVEL_UNDEFINE = 0
OES_OPT_INV_LEVEL_1 = 1
OES_OPT_INV_LEVEL_2 = 2
OES_OPT_INV_LEVEL_3 = 3
OES_POSITION_EFFECT_UNDEFINE = 0
OES_POSITION_EFFECT_OPEN = 1
OES_POSITION_EFFECT_CLOSE = 2
OES_NOTIFY_SOURCE_UNDEFINE = 0
OES_NOTIFY_SOURCE_OES = 1
OES_NOTIFY_SOURCE_MON = 2
OES_NOTIFY_SOURCE_BROKER = 3
OES_NOTIFY_SOURCE_EXCHANGE = 4
OES_NOTIFY_SOURCE_CSDC = 5
OES_NOTIFY_TYPE_UNDEFINE = 0
OES_NOTIFY_TYPE_CONTRACT_EXPIRE = 1
OES_NOTIFY_TYPE_CONTRACT_ADJUSTED = 2
OES_NOTIFY_TYPE_UNDERLYING_DR_PROXIMITY = 3
OES_NOTIFY_TYPE_EXERCISE_DATE_PROXIMITY = 4
OES_NOTIFY_TYPE_EXERCISED_POSSIBILITY = 5
OES_NOTIFY_TYPE_EXERCISE_ASSIGNED = 6
OES_NOTIFY_TYPE_COVERED_NOT_ENOUGH = 7
OES_NOTIFY_TYPE_DELIVERY_NOT_ENOUGH = 8
OES_NOTIFY_TYPE_MARGIN_CALL = 9
OES_NOTIFY_TYPE_FORCED_CLOSE = 10
OES_NOTIFY_TYPE_OTHERS = 100
OES_NOTIFY_LEVEL_UNDEFINE = 0
OES_NOTIFY_LEVEL_LOW = 1
OES_NOTIFY_LEVEL_GENERAL = 2
OES_NOTIFY_LEVEL_IMPORTANT = 3
OES_NOTIFY_LEVEL_URGENT = 4
OES_NOTIFY_SCOPE_UNDEFINE = 0
OES_NOTIFY_SCOPE_CUST = 1
OES_NOTIFY_SCOPE_ALL = 2
OES_MAX_ORD_ITEM_CNT_PER_PACK = 30
OES_MAX_TRD_ITEM_CNT_PER_PACK = 30
OES_MAX_CASH_ASSET_ITEM_CNT_PER_PACK = 30
OES_MAX_HOLDING_ITEM_CNT_PER_PACK = 30
OES_MAX_CUST_ITEM_CNT_PER_PACK = 30
OES_MAX_INV_ACCT_ITEM_CNT_PER_PACK = 30
OES_MAX_COMMS_RATE_ITEM_CNT_PER_PACK = 50
OES_MAX_FUND_TRSF_ITEM_CNT_PER_PACK = 30
OES_MAX_LOG_WINNING_ITEM_CNT_PER_PACK = 30
OES_MAX_ISSUE_ITEM_CNT_PER_PACK = 30
OES_MAX_STOCK_ITEM_CNT_PER_PACK = 30
OES_MAX_ETF_ITEM_CNT_PER_PACK = 30
OES_MAX_ETF_COMPONENT_ITEM_CNT_PER_PACK = 30
OES_MAX_OPTION_ITEM_CNT_PER_PACK = 30
OES_MAX_MKT_STATE_ITEM_CNT_PER_PACK = 30
OES_MAX_NOTIFY_INFO_ITEM_CNT_PER_PACK = 30
OES_MAX_OPT_UNDERLYING_ITEM_CNT_PER_PACK = 30
OES_MAX_EXERCISE_ASSIGN_ITEM_CNT_PER_PACK = 30
OES_MAX_CUST_PER_CLIENT = 1
OES_APPL_VER_ID = "0.16.0.4"
OES_APPL_VER_VALUE = 1001600041
OES_MIN_APPL_VER_ID = "0.15.5"
OES_APPL_NAME = "OES"
OESMSG_ORD_NEW_ORDER = 0x01
OESMSG_ORD_CANCEL_REQUEST = 0x02
OESMSG_ORD_BATCH_ORDERS = 0x03
__OESMSG_RPT_MIN = 0x0F
OESMSG_RPT_MARKET_STATE = 0x10
OESMSG_RPT_REPORT_SYNCHRONIZATION = 0x11
OESMSG_RPT_BUSINESS_REJECT = 0x12
OESMSG_RPT_ORDER_INSERT = 0x13
OESMSG_RPT_ORDER_REPORT = 0x14
OESMSG_RPT_TRADE_REPORT = 0x15
OESMSG_RPT_FUND_TRSF_REJECT = 0x16
OESMSG_RPT_FUND_TRSF_REPORT = 0x17
OESMSG_RPT_CASH_ASSET_VARIATION = 0x18
OESMSG_RPT_STOCK_HOLDING_VARIATION = 0x19
OESMSG_RPT_OPTION_HOLDING_VARIATION = 0x1A
OESMSG_RPT_OPTION_SETTLEMENT_CONFIRMED = 0x1C
OESMSG_RPT_NOTIFY_INFO = 0x1E
OESMSG_RPT_SERVICE_STATE = 0x1F
__OESMSG_NONTRD_MIN = 0x20
OESMSG_NONTRD_FUND_TRSF_REQ = 0x21
OESMSG_NONTRD_CHANGE_PASSWORD = 0x22
OESMSG_NONTRD_OPT_CONFIRM_SETTLEMENT = 0x23
__OESMSG_QRYMSG_MIN = 0x2F
OESMSG_QRYMSG_CLIENT_OVERVIEW = 0x30
OESMSG_QRYMSG_STK_HLD = 0x34
OESMSG_QRYMSG_OPT_HLD = 0x35
OESMSG_QRYMSG_CUST = 0x36
OESMSG_QRYMSG_COMMISSION_RATE = 0x38
OESMSG_QRYMSG_FUND_TRSF = 0x39
OESMSG_QRYMSG_ETF = 0x3B
OESMSG_QRYMSG_ETF_COMPONENT = 0x3C
OESMSG_QRYMSG_OPTION = 0x3D
OESMSG_QRYMSG_ISSUE = 0x3E
OESMSG_QRYMSG_LOT_WINNING = 0x3F
OESMSG_QRYMSG_TRADING_DAY = 0x40
OESMSG_QRYMSG_MARKET_STATE = 0x41
OESMSG_QRYMSG_COUNTER_CASH = 0x42
OESMSG_QRYMSG_OPT_UNDERLYING_HLD = 0x43
OESMSG_QRYMSG_NOTIFY_INFO = 0x44
OESMSG_QRYMSG_OPT_POSITION_LIMIT = 0x45
OESMSG_QRYMSG_OPT_PURCHASE_LIMIT = 0x46
OESMSG_QRYMSG_BROKER_PARAMS = 0x48
OESMSG_QRYMSG_INV_ACCT = 0x51
OESMSG_QRYMSG_STOCK = 0x52
OESMSG_QRYMSG_CASH_ASSET = 0x53
OESMSG_QRYMSG_ORD = 0x54
OESMSG_QRYMSG_TRD = 0x55
OESMSG_QRYMSG_OPT_EXERCISE_ASSIGN = 0x56
OESMSG_SESS_HEARTBEAT = 0xFA
OESMSG_SESS_TEST_REQUEST = 0xFB
OESMSG_SESS_LOGIN_EXTEND = 0xFC
OESMSG_SESS_LOGOUT = 0xFE
OESMSG_RPT_ORDER_REJECT = OESMSG_RPT_BUSINESS_REJECT
OESMSG_QRYMSG_ORD_L001509 = 0x31
OESMSG_QRYMSG_TRD_L001509 = 0x32
OESMSG_QRYMSG_CASH_ASSET_L001509 = 0x33
OESMSG_QRYMSG_INV_ACCT_L001508 = 0x37
OESMSG_QRYMSG_STOCK_L001508 = 0x3A
OESMSG_QRYMSG_OPT_EXERCISE_ASSIGN_L001600 = 0x47
OES_SUB_RPT_TYPE_DEFAULT = 0
OES_SUB_RPT_TYPE_BUSINESS_REJECT = 0x01
OES_SUB_RPT_TYPE_ORDER_INSERT = 0x02
OES_SUB_RPT_TYPE_ORDER_REPORT = 0x04
OES_SUB_RPT_TYPE_TRADE_REPORT = 0x08
OES_SUB_RPT_TYPE_FUND_TRSF_REPORT = 0x10
OES_SUB_RPT_TYPE_CASH_ASSET_VARIATION = 0x20
OES_SUB_RPT_TYPE_HOLDING_VARIATION = 0x40
OES_SUB_RPT_TYPE_MARKET_STATE = 0x80
OES_SUB_RPT_TYPE_NOTIFY_INFO = 0x100
OES_SUB_RPT_TYPE_SETTLEMETN_CONFIRMED = 0x200
OES_SUB_RPT_TYPE_ALL = 0xFFFF
__MAX_OES_SUB_RPT_TYPE = 0x7FFFFFFF
OES_PROT_HINTS_TYPE_DEFAULT = 0
OES_PROT_HINTS_TYPE_COMPRESS = 0x80
OES_PROT_HINTS_TYPE_NONE = 0xFF
__MAX_OES_PROT_HINTS_TYPE = 0xFF
